package com.qf.bean;


import com.qf.enums.EmptyType;
import org.springframework.util.ObjectUtils;

public class SysScene implements CheckEmpty{

  private Integer sceneId;
  private String sceneName;
  private Integer createBy;
  private java.util.Date createTime;
  private Integer status;

  @Override
  public boolean isEmpty(EmptyType emptyType) {
    switch (emptyType) {
      case ADD: return ObjectUtils.isEmpty(sceneName);
      case UPDATE:return ObjectUtils.isEmpty(sceneName);
    }
    return false;
  }

  public Integer getSceneId() {
    return sceneId;
  }

  public void setSceneId(Integer sceneId) {
    this.sceneId = sceneId;
  }


  public String getSceneName() {
    return sceneName;
  }

  public void setSceneName(String sceneName) {
    this.sceneName = sceneName;
  }


  public Integer getCreateBy() {
    return createBy;
  }

  public void setCreateBy(Integer createBy) {
    this.createBy = createBy;
  }


  public java.util.Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(java.util.Date createTime) {
    this.createTime = createTime;
  }


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

}
